
#pragma warning (disable : 4251 4996 4819 4244)

#include "PlayerObjectManager.h"
#include "PeopleCircle.h"
#include "PathPlanner.h"
#include "PlayerProxy.h"
#include <sstream>
#include <iostream>

int main(int argc, char *argv[])
{
    std::vector<std::string> vecDefFiles;
    vecDefFiles.push_back( "../worlds/tables.inc" );
    vecDefFiles.push_back( "../worlds/person.inc" );
    PlayerObjectManager::Instance().ParseConfigFile( vecDefFiles, "../worlds/simple.world" );

    PathPlanner::Instance().Init( PlayerProxy::Instance().GetMap() );

    unsigned int unPeopleNum = 100u;

    if ( argc > 1 )
    {
        std::stringstream stmNum( argv[1] );
        stmNum >> unPeopleNum;
        std::cout << "Totally " << unPeopleNum << " people would be served" << std::endl;
    }

    PeopleCircle oCircle(unPeopleNum);
    oCircle.Social();

    return 0;
}
